package admin

import (
	"context"
	"server/internal/service"

	"server/api/admin/system"
)

func (c *ControllerSystem) ConfigMap(ctx context.Context, req *system.ConfigMapReq) (res *system.ConfigMapRes, err error) {
	res = new(system.ConfigMapRes)
	res.Data, err = service.SystemConfig().MapList(ctx, req.Codes)
	return
}
